From 13fde6f4cd782f9b72d8b1260dd53a19f81ec625 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 10 Apr 2020 16:35:15 +0200 Subject: [PATCH] label: Shorten set_markup_internal a bit --- gtk/gtklabel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index a586ccf77f..8e9f31b23c 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -2411,8 +2411,7 @@ gtk_label_set_markup_internal (GtkLabel *label, if (attrs) { - if (priv->markup_attrs) - pango_attr_list_unref (priv->markup_attrs); + g_clear_pointer (&priv->markup_attrs, pango_attr_list_unref); priv->markup_attrs = attrs; } -- 2.30.2